package com.lemzdo.community.service;


import com.lemzdo.community.dto.NoticeDTO;
import com.lemzdo.community.enums.NoticeStatusEnum;
import com.lemzdo.community.enums.NoticeTypeEnum;
import com.lemzdo.community.model.Notice;
import com.lemzdo.community.model.User;

import java.util.List;

public interface NoticeService {

    void createNotice(Integer senderId , Integer receiverId , Integer postOrCommentId ,
                      NoticeTypeEnum noticeTypeEnum );

    List<NoticeDTO> getAllByReceiverId(Integer receiverId);

    Integer countByReceiverId(Integer receiverId);

    NoticeDTO readNotice(Integer id, User user);

    NoticeDTO transformToDTO(Notice notice);

    Integer getUnReadCount(Integer receiverId);
}
